package com.app.core.mvc.repeat;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author qiangt
 * @since 2023/6/29 16:31
 */
@ConfigurationProperties(prefix = "craftsman.repeat-commit")
@Component
@Setter
@Getter
public class RepeatCommitProperties {

    /** 是否启用防重复提交 */
    private boolean enabled;
    /** 防重复提交时间间隔（单位：毫秒） */
    private Long repeatInterval;

}
